import request from "@/request/request.js";
// 查看登录用户信息
export const userinfo =() =>{
    return request({
        method:"get",
        url:"/user/getUser",
    })
}
    //修改登录用户信息
export const userupdate =data=>{
return  request({
    method:"post",
    url:"/user/updateUser",
    data:data
 })
}
export  const userData=()=>{
    return request({
        method:"get",
        url:"/sysuser/userInfo"
    })
}
//  查询优惠卷
export const preferential =()=>{
 return request({
    method:"get",
    url:"/user/getUserYhj"
 })
}
//  查询优惠卷不可用的
export const Notpreferential =()=>{
    return request({
       method:"get",
       url:"/user/getNotUserYhj"
    })
   }

// 优惠卷说明
export const yhjexplain =()=>{
    return request({
       method:"get",
       url:"/user/getYhjExplain"
    })    
   }

//    活动查询
export const huodonglist =()=>{
    return request({
       method:"post",
       url:"/activity/getActivityList"
    })    
}
export const getCollectSiteList=()=>{
    return request({
       method:"get",
       url:"/sysusersite/getUserList"
    })
}
export const delSite=(id)=>{
    return request({
       method:"delete",
       url:"/sysusersite/delData/"+id
    })
}


//    头像上传
export const touxiang =()=>{
    return request({
       method:"post",
       url:"/admin/system/fileUpload"
    })
   }
 //    点击领取优惠卷
 export const lingqu =data=>{
    return request({
       method:"post",
       url:"/activity/updateAcnum",
       data:data
    })
   }
   // 活动添加
   export const huodongsave =data=>{
      return request({
         method:"post",
         url:"/activity/addActivity",
         data:data
      })    
     }
   //   预约信息查看
   export const yuyuelist =()=>{
      return request({
         method:"post",
         url:"/reservation/getReservation",
      })    
     }


